/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.close.basic.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.hopes.bizz.close.common.constant.enums.ParkCloseSysDictEnum;
import com.hopes.boss.admin.api.resolver.DictResolver;
import com.hopes.boss.common.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;

/**
 * 车道信息
 *
 * @author pig
 * @date 2023-10-31 14:39:59
 */
@Data
@TableName(value = "closed_road", excludeProperty = "tenantId")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "车道信息")
public class ClosedRoadEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;


	/**
	* 标识
	*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description="标识")
    private Long id;

	/**
	* 道路名称
	*/
    @Schema(description="道路名称")
    private String name;

	/**
	 * 道路类型
	 */
	@Schema(description = "道路类型")
    private String roadType;

	/**
	* 专用车道
	*/
    @Schema(description="专用车道")
    private String hazardFlag;

	/**
	* 道路限速
	*/
    @Schema(description="道路限速")
    private Integer speedLimit;

	/**
	 * 车道宽度
	 */
	@Schema(description = "车道宽度")
    private Double roadWidth;

	/**
	 * 开始通行时间
	 */
	@Schema(description="开始通行时间")
    private String periodStart;

	/**
	 * 截止通行时间
	 */
	@Schema(description="截止通行时间")
    private String periodEnd;

	/**
	* 道路范围
	*/
    @Schema(description="道路范围")
    private String roadScope;

	/**
	* 备注
	*/
    @Schema(description="备注说明")
    private String remarks;



    public String getRoadTypeStr() {
    	return DictResolver.getItemLabelByValue(ParkCloseSysDictEnum.close_road_type, this.getRoadType());
	}

}
